{% extends 'base.html' %}
{% block body %}
    {{ block.super }}
    {% for hero in heros %}
        {% if forloop.counter|divisibleby:2 %}
            <div style="color: blue">
                <span>序号: {{ forloop.counter }}</span> <span>姓名: {{ hero.name }}</span>
                <span>年龄: {{ hero.age }}</span>
            </div>
        {% else %}
            <div style="color: red">
                <span>序号: {{ forloop.counter }}</span> <span>姓名: {{ hero.name }}</span>
                <span>年龄: {{ hero.age }}</span>
            </div>
        {% endif %}
    {% empty %} 人物为空
    {% endfor %}

    {% if num >= 60 %}
        <h1>通过</h1>
    {% else %}
        <h1>没通过</h1>
    {% endif %}
{% endblock body %}
